package com.want;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.data.r2dbc.repository.config.EnableR2dbcRepositories;

/**
 * @author WangZhiJian
 * @since 2021/12/1
 */
@Slf4j
@SpringBootApplication
@EnableR2dbcRepositories(basePackages = "com.want.repository")
public class CommentApplication {
    public static void main(String[] args) {
        new SpringApplicationBuilder(
                CommentApplication.class)
                .web(WebApplicationType.REACTIVE).run(args);
        log.info("http://localhost:8083/swagger-ui/index.html 评论微服务启动完成！");
    }
}
